<template>
    <div class="back" @click="back">

    </div>
</template>

<script>
    export default {
        props:{
          click:{
            type:Boolean,
            default(){
              return true
            }
          }
        },
        name: "back",
        created(){
        },
        methods:{
          back(){
            if(!this.click){
              return
            }
            window.history.back(-1)
          }
        }
    }
</script>

<style scoped lang="stylus">
  .back
    height 100%
    width 100%
    background url("arrow_left.svg") no-repeat 10px center /8px 16px
</style>
